﻿namespace Example
{
    using Nini.Config;
    using Xunit;

    public sealed class NiniFacts
    {
        [Fact]
        public void test()
        {
            var source = new IniConfigSource("app.ini");

            var logging = source.Configs["Logging"];
            Assert.Equal("app.log", logging.Get("File Name"));
            Assert.Equal(40000000000000, logging.GetLong("MaxFileSize"));

            var user = source.Configs["User"];
            Assert.Equal("John Doe", user.Get("Name"));
            Assert.Equal("john.doe@example.com", user.Get("Email"));
        }
    }
}